<template><div>
	<BubbleText :direction="direction" :avatar="avatar" :content="content" v-if="type==='text'"> </BubbleText>
</div></template>
<script>
import CONFIG from '../../common/config.js';
import BubbleText from './BubbleText.vue';

export default {
	props : ['type', 'avatar', 'direction', 'content'],

	data() {
		return {
			robotHead : CONFIG.config.resourceDirectory + "robot.jpg",
		}
	},

	components : { 
		BubbleText
	}
}
</script>